using D.WebApi.Core;

var builder = WebApplication.CreateBuilder(args);
var res = BaseApi.AddService(builder.Services, builder.Configuration, builder.Environment);
if (res)
{
    var app = builder.Build();
    BaseApi.UseApp(app, app.Environment); 
    //app.MapControllers();
    app.Run();
}
Console.ReadLine();
